package lab.lab01;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Excise02 {
    public static void main(String[] args) throws ParseException {
        // 从身份证号中提取生日信息
        String birthDateStr = Excise01.getIdCard().substring(6, 14);
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyyMMdd");
        SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd");
        SimpleDateFormat sdf3 = new SimpleDateFormat("yyyy年MM月dd日");
        Date birthDate = sdf1.parse(birthDateStr);
    }

}
